package com.by.course.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.by.course.entity.bo.BaseLesson;

import java.util.List;

public interface BaseLessonMapper extends BaseMapper<BaseLesson>  {

    int insertSelective(BaseLesson record);

    int updateByPrimaryKeySelective(BaseLesson record);

    List<BaseLesson> selectByCourseId(Long course);

    List<Long> getLessonIdByCourseId(Long course);

    List<String> selectLessonTitleByIdList(List<Long> idList);

    List<BaseLesson> selectLessonTitleByCourseIdList(List<Long> courseIdList);
}